package bar.dark.lee.manager.money;

import android.os.Parcel;
import android.os.Parcelable;

public class BankbookData implements Parcelable
{
	private String id;
	private String name;
	private String money;
	private String flag;
	private String order;
	
	public BankbookData(){};
	
	public BankbookData(Parcel source)
	{
		this.id = source.readString();
		this.name = source.readString();
		this.money = source.readString();
		this.flag = source.readString();
		this.order = source.readString();
	}

	@Override
	public int describeContents()
	{
		return 0;
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(this.getId());
		dest.writeString(this.getName());
		dest.writeString(this.getMoney());
		dest.writeString(this.getFlag());
		dest.writeString(this.getOrder());
	}
	
	public static Parcelable.Creator<BankbookData> CREATOR = new Creator<BankbookData>()
	{
		@Override
		public BankbookData[] newArray(int size)
		{
			return new BankbookData[size];
		}
		
		@Override
		public BankbookData createFromParcel(Parcel source)
		{
			return new BankbookData(source);
		}
	};
	
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public String getMoney()
	{
		return money;
	}
	public void setMoney(String money)
	{
		this.money = money;
	}

	public String getFlag()
	{
		return flag;
	}

	public void setFlag(String flag)
	{
		this.flag = flag;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}
}
